package com.chenyue.cm.group.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 组队
 * </p>
 *
 * @author Lbx
 * @since 2021-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdGroup对象", description = "组队")
public class JdGroup extends Model<JdGroup> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "队伍名称")
    private String name;

    @ApiModelProperty(value = "队伍人数")
    private Integer count;

    @ApiModelProperty(value = "创建人")
    private Integer leader;

    @ApiModelProperty(value = "组队要求")
    private String remark;

    @ApiModelProperty(value = "队伍类型（同赛事类型）")
    private Integer type;

    @ApiModelProperty("头像")
    @TableField(exist = false)
    private String headImg;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
